package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 b_book
 * 
 * @author ruoyi
 * @date 2023-12-07
 */
public class BBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

private  String typeName;
    /** 图书id */
    private Long bookId;

    /** 图书名 */
    @Excel(name = "图书名")
    private String bookName;

    /** 作者 */
    @Excel(name = "作者")
    private String auther;

    /** 图书分类id */
    @Excel(name = "图书分类id")
    private Long typeId;

    /** 现存数量 */
    @Excel(name = "现存数量")
    private Long count;

    /** 预览图 */
    @Excel(name = "预览图")
    private String imgurl;

    /** 是否下架(0, 1下架) */
    @Excel(name = "是否下架(0, 1下架)")
    private String status;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 借出次数 */
    @Excel(name = "借出次数")
    private Long loan;

    public BBook() {
    }

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setAuther(String auther) 
    {
        this.auther = auther;
    }

    public String getAuther() 
    {
        return auther;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }
    public void setLoan(Long loan) 
    {
        this.loan = loan;
    }

    public Long getLoan() 
    {
        return loan;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("bookName", getBookName())
            .append("auther", getAuther())
            .append("typeId", getTypeId())
            .append("count", getCount())
            .append("imgurl", getImgurl())
            .append("status", getStatus())
            .append("publisher", getPublisher())
            .append("loan", getLoan())
            .toString();
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
